#{extends 'main.html' /} #{set title:'Log in' /}

<div class="row-fluid">
	<div class="span6 offset3">
		<div class="hero-unit">
			#{if flash?.error}
			<div class="error">
				<p style="color: #c00">${flash.error}</p>
			</div>
			#{/if} #{if flash?.success}
			<div class="success">
				<p style="color: #5fa022">${flash.success}</p>
			</div>
			#{/if}
			<h2 id="title">Log in:</h2>
			<form id="login" action=@{Application.authenticate} method="POST"
				accept-charset="${_response_encoding}">
				<p>
					<label for="email">E-mail address:</label> <input type="text" name="email"
						value="${flash.email}" id="email" />
				</p>
				<p>
					<label for="password">Password:</label> <input type="password" name="password"
						value="" id="password" />
				</p>
				</p>
				<p class="buttons">
					<input type="submit" value="Login" id="loginButton"
						class="btn btn-primary btn-large" />
				</p>
			</form>
			#{if flash.notconfirmed}
			<p>
				<a class="action"
					href="@{Application.resendConfirmation(flash.notconfirmed)}">Resend
					a confirmation email</a>
			</p>
			#{/if}
		</div>
	</div>
</div>